
<script>
  import $ from 'dfish-widget'
  import TD from './TableTD.vue'

  export default {
    mixins: [TD],
    data() {
      return {
        name: 'TH',
        remark: `<div>表头的单元格。</div>`,
        events: [{
          name: 'click:sort',
          remark: '点击排序时触发',
          option: `<div>(event: Event, order: String)</div><div>可通过<var>event.value</var>获取order值</div>`,
        }],
      }
    },
    created() {
      this.merge([{
        name: 'sortable',
        type: 'Boolean',
        remark: '是否可排序',
        default: '',
      }], 'attrs')
    }
  }
</script>
